package cn.tellsea.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 指向服务提供者应用
 *
 * @author Tellsea
 * @date 2021/12/20
 */
@FeignClient("spring-cloud-alibaba-nacos-discovery")
public interface EchoService {

    /**
     * 远程方法
     *
     * @param message
     * @return
     */
    @GetMapping("/echo/{message}")
    String echo(@PathVariable("message") String message);
}
